﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using ST.Core;

namespace ST.Data
{
    public partial interface IRepository<TEntity> where TEntity : Int64Model
    {
        AppDbContext DB { get; set; }    
        IQueryable<TEntity> GetAll(bool includeDeleted=false);
        Task<int> SaveChagnesAsync();
        int SaveChagnes();

        TEntity GetById(long id);
        Task<TEntity> GetByIdAsync(long id);
        TEntity GetById(Int64Model qm);



        List<TEntity> GetByIds(List<long> lid);
        Task<List<TEntity>> GetByIdsAsync(List<long> lid);


       

       
    }
}
